package com.rpframework.module.common.bottom.entity;

import com.rpframework.module.common.bottom.api.juhe.cn.Position;

import javax.persistence.Transient;
import java.util.List;

public class RegionCity extends Region {
    /**
     * 区县主键
     */
    private Integer countryCode;
    /**
     * 城市名
     */
    private String name;
    /**
     * 等级
     */
    private String level;
    private Double area;
    private Double population;
    private String station;
    private Integer postalCode;
    private Integer areaCode;
    private Double longitude;
    private Double dimensions;
    /**
     * 关联的区县
     */
    @Transient
    private List<RegionCounty> regionCountyList;
    @Transient
    private Position position;
    /**
     * 他的省份
     */
    @Transient
    private RegionProvince regionProvince;

    public Position getPosition() {
        return position;
    }

    public void setPosition(Position position) {
        this.position = position;
    }

    public List<RegionCounty> getRegionCountyList() {
        return regionCountyList;
    }

    public void setRegionCountyList(List<RegionCounty> regionCountyList) {
        this.regionCountyList = regionCountyList;
    }

    public RegionProvince getRegionProvince() {
        return regionProvince;
    }

    public void setRegionProvince(RegionProvince regionProvince) {
        this.regionProvince = regionProvince;
    }

    public Integer getCountryCode() {
        return countryCode;
    }

    public void setCountryCode(Integer countryCode) {
        this.countryCode = countryCode;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public Double getArea() {
        return area;
    }

    public void setArea(Double area) {
        this.area = area;
    }

    public Double getPopulation() {
        return population;
    }

    public void setPopulation(Double population) {
        this.population = population;
    }

    public String getStation() {
        return station;
    }

    public void setStation(String station) {
        this.station = station;
    }

    public Integer getPostalCode() {
        return postalCode;
    }

    public void setPostalCode(Integer postalCode) {
        this.postalCode = postalCode;
    }

    public Integer getAreaCode() {
        return areaCode;
    }

    public void setAreaCode(Integer areaCode) {
        this.areaCode = areaCode;
    }

    public Double getLongitude() {
        return longitude;
    }

    public void setLongitude(Double longitude) {
        this.longitude = longitude;
    }

    public Double getDimensions() {
        return dimensions;
    }

    public void setDimensions(Double dimensions) {
        this.dimensions = dimensions;
    }
}
